<!--
 * @FileDescription: this is my vue
 * @Author: zhuxin xu
 * @Date: 2022-12-13 13:58:37
 * @LastEditors: zhuxin xu
 * @LastEditTime: 2022-12-19 14:10:06
-->
<template>
  <div class="time">{{fomateDateTime?fomateDateTime:''}}</div>
</template>

<script>
//引入dayjs插件
import dayjs from "dayjs";
export default {
  name: "NoticeListTableTime",
  props: {
    Time: {
      type: String,
      default: () => null
    }
  },
  computed: {
    fomateDateTime() {
      if (this.Time) {
        return dayjs(this.Time).format("YYYY/MM/DD HH:mm");
      } else {
        return "- -";
      }
    }
  }
};
</script>
<style  scoped>
.time {
  font-family: PingFangSC-Regular;
  font-size: 15px;
  color: #000000;
  letter-spacing: 0;
  line-height: 24px;
  font-weight: 400;
}
</style>